import {
    TOOL_ROUTE,
    TOOL_GEN_REQ,
    TOOL_MAIN_ROUTE,
    TOOL_DEL_ZHUAN_YI_ROUTE,
    TOOL_REPLACE_STR,
    TOOL_UPLOAD
} from '@/constants/routes';
import TOOLS from '@/components/Tools';

import GEN_REQ from '@/components/Tools/GenReq';
import MainContainer from "@/components/Tools/MainContainer";
import DelZhuanYi from "@/components/Tools/DelZhuanYi";
import Replace from "@/components/Tools/Replace";
import Upload from "@/components/Tools/Upload";


export default {
    path: '/tool',
    name: TOOL_ROUTE,
    meta: '小工具',
    redirect: { name: TOOL_MAIN_ROUTE },
    component: TOOLS,
    children: [
        // {
        //     path: 'main',
        //     name: TOOL_MAIN_ROUTE,
        //     meta: '主页面',
        //     component: MainContainer
        // },

        {
            path: 'main',
            name: TOOL_MAIN_ROUTE,
            meta: '主页面',
            component: MainContainer
        },
        {
            path: 'del_zhuan_yi',
            name: TOOL_DEL_ZHUAN_YI_ROUTE,
            meta: '删除转义',
            component: DelZhuanYi
        },

        {
            path: 'gen_req',
            name: TOOL_GEN_REQ,
            meta: '生成请求',
            component: GEN_REQ
        },
        {
            path: 'replace',
            name: TOOL_REPLACE_STR,
            meta: '替换处理',
            component: Replace
        },
        {
            path: 'upload',
            name: TOOL_UPLOAD,
            meta: '上传',
            component: Upload
        }
    ]
};
